//
//  HCWLocationManager.h
//  LuckSteer
//
//  Created by BOOU on 15/11/26.
//  Copyright © 2015年 BOOU. All rights reserved.
//

#import <CoreLocation/CoreLocation.h>


typedef void (^LocationFinishBlock)(CLLocation *location);
/**
 *  type 0:未开启定位服务  1:定位失败
 */
typedef void (^LocationErrorBlock)(NSInteger type, NSError *error);

@interface HCWLocationManager : CLLocationManager

+ (instancetype)sharedManager;

@property (nonatomic, assign) CGFloat minSpeed;     /**< 最小速度定位 */
@property (nonatomic, assign) CGFloat minFilter;    /**< 最小距离定位 */
@property (nonatomic, assign) CGFloat minInteval;   /**< 最小时间定位 */

@property (nonatomic) LocationFinishBlock locationFinishBlock;
@property (nonatomic) LocationErrorBlock locationErrorBlock;

- (void)startUpdatingLocation:(LocationFinishBlock)finishBlock
                   errorBlock:(LocationErrorBlock)errorBlock;

@end
